function Namespace(package){
	var arr = package.split("."),
	o = window,
	d = "",
	i = 0,
	l = arr.length;
	for (i; i<l; i++) {
		d = arr[i];
		if(o[d] === undefined){
			o[d] = {};
		}
		o = o[d];
	}
	return o;
}
function CreateView(dom, constructor, opts){
	if(typeof dom === "string"){
		dom = document.getElementById(dom);
	}
	if(dom !== undefined){
		dom.Controller = new constructor(dom,opts);
	}
}